home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 983 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.1 KB

  1. From: Kay Roemer <roemer@informatik.uni-frankfurt.de>
  2. Posted-Date: Tue, 8 Feb 94 8:29:23 MEZ
  3. Received-Date: Tue, 8 Feb 94 08:29:23 +0100
  4. Message-Id: <9402080729.AA23936@hera.rbi.informatik.uni-frankfurt.de>
  5. Subject: Re: fchmod function
  6. To: herborth@53iss6.waterloo.ncr.com (Chris Herborth)
  7. Date: Tue, 8 Feb 94 8:29:23 MEZ
  8. In-Reply-To:  <9402071555.dd02646@ncrhub1.NCR.COM>; from "Chris Herborth" at Feb 7, 94 2:42 pm
  9. Mailer: Elm [revision: 70.85]
  10.  
  11. > One of the programs I'm porting uses fchmod()... has anyone written one
  12. > that can be added to the MiNTlibs?  There currently isn't one in there
  13.  
  14. I think with the current version of MiNT a real fchmod() is not possible
  15. (Tell me if I'm wrong). Fchmod() takes a filename, not a descriptor. So
  16. it would be necessary to add a new ioctl(), lets say FCHMOD.
  17.  
  18. The only way to do an fchmod() without this is to get the files inode/dev
  19. numbers with fstat() (yes there is an FSTAT ioctl) and search the whole
  20. filesystem for the file with this inode/dev and then do an Fchmod() on
  21. this file.
  22. But this idea is a poor one, since inodes on TosFs are fake and
  23. filesystems tend to be very large :)
  24.  
  25. Cheers, Kay Roemer.
  26.